package com.freewater.library.lending.book.application.command;

import lombok.Getter;
import org.apache.commons.lang3.Validate;

@Getter
public class CreateBookInstanceCommand {
    /**
     * 二维码
     */
    private final String qrCode;
    /**
     * ISBN
     */
    private final String isbn;

    public CreateBookInstanceCommand(String qrCode, String isbn) {
        Validate.notBlank(qrCode, "二维码不能为空");
        Validate.notBlank(isbn, "ISBN不能为空");
        this.qrCode = qrCode;
        this.isbn = isbn;
    }
}
